<?php

namespace App\Admin\Controllers;

use App\Models\Config;
use Encore\Admin\Controllers\AdminController;
use Encore\Admin\Form;
use Encore\Admin\Grid;
use Encore\Admin\Show;
use App\Admin\Forms\Setting;
use App\Http\Controllers\Controller;
use Encore\Admin\Layout\Content;
use Encore\Admin\Widgets\Tab;

class SettingController extends Controller
{
    /**
     * Title for current resource.
     *
     * @var string
     */
    protected $title = '网站设置';

    public function index(Content $content)
    {
        
        $forms = [
            'basic'    => Setting\Basic::class,
            'site'     => Setting\Site::class,
            // 'upload'   => Setting\Upload::class,
            // 'database' => Setting\Database::class,
            // 'develop'  => Setting\Develop::class,
        ];
        // dd($forms);
        return $content
            ->title('系统设置')
            ->body(Tab::forms($forms));
    }
    
}
